package com.fitns.user.exception;

public enum FacilityDataMsgCode implements MsgCode {
    FACILITY_ORGAN_OR_IS_NULL(50001, "未选中设施所属机构或上级！"),
    FACILITY_ID_IS_NULL(50002,"id不能为空"),
    FACILITY_DATA_IS_NOT_EXIST(50003,"该项不存在"),
    FACILITY_DATA_IS_NULL(50004,"对象不能为空"),
    FACILITY_TYPE_IS_NULL(50005,"设施类型为空"),
    FACILITY_BAGANTIME_IS_NULL(50006,"开始时间不能为空"),
    FACILITY_ADDRESS(50007,"地址不能为空"),
    FACILITY_STATUES(50008,"状态不能为空"),
    FACILITY_AME(50010,"设施名称不能为空")
    ;


    private int code;
    private String message;

    FacilityDataMsgCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}